home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / devel / lang / lisp / guile-ii.src / guile-ii / guile-src / ctax / Makefile.in < prev   
Encoding:
Makefile  |  1995-08-18  |  3.2 KB  |  137 lines

  1. # Makefile for libgtcltk
  2. # Copyright (C) 1994 Free Software Foundation, Inc.
  3. # This file is part of GNU Gtcltk
  4. # GNU Gtcltk is free software; you can redistribute it and/or modify
  5. # it under the terms of the GNU General Public License as published by
  6. # the Free Software Foundation; either version 2, or (at your option)
  7. # any later version.
  8. # GNU Gtcltk is distributed in the hope that it will be useful,
  9. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  11. # GNU General Public License for more details.
  12. # You should have received a copy of the GNU General Public License
  13. # along with GNU SED; see the file COPYING.  If not, write to
  14. # the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
  15.  
  16. SHELL = /bin/sh
  17.  
  18. srcdir = @srcdir@
  19. VPATH = @srcdir@
  20. prefix = @prefix@
  21. exec_prefix = $(prefix)
  22. bindir = $(exec_prefix)/bin
  23. libdir = $(exec_prefix)/lib
  24. glsdir = $(exec_prefix)/lib/gls
  25. includedir = $(prefix)/include
  26. infodir = $(prefix)/info
  27.  
  28. #### Start of system configuration section. ####
  29.  
  30. CC = @CC@
  31. BISON = @YACC@
  32. FLEX = @LEX@
  33. INSTALL = @INSTALL@
  34. DEFS = @DEFS@
  35. CFLAGS = -g -I. -I$(srcdir)/../libguile -I../libguile 
  36. AR = ar
  37. AR_FLAGS = rc
  38. RANLIB = @RANLIB@
  39. source= ctax-lex.l ctax-parse.y ctax.c
  40. xfiles=ctax.x
  41. headers=ctax.h
  42. scm_files=ctax.scm
  43. ancillery=configure.in Makefile.in configure \
  44.       COPYING ChangeLog \
  45.     ctax.doc \
  46.       PLUGIN 
  47. distfiles=$(source) $(headers) $(ancillery) $(scm_files)
  48. libobjs=ctax-lex.o ctax-parse.o ctax.o
  49.  
  50. .SUFFIXES:
  51. .SUFFIXES: .o .c .h .ps .dvi .info .texinfo .scm .cd .x 
  52.  
  53. .c.x:
  54.     $(CC) $(CFLAGS) -DSCM_MAGIC_SNARFER -E $< | grep "^%%%" | sed -e "s/^%%%//" > $@ ; \
  55.  
  56. .c.o:
  57.     $(CC) -c $(CFLAGS) $(DEFS) -I$(srcdir) $<
  58.  
  59. all: libctax.a
  60.  
  61. install: all
  62.     test -d $(libdir) || mkdir $(libdir)
  63.     test -d $(glsdir) || mkdir $(glsdir)
  64.     test -d $(includedir) || mkdir $(includedir)
  65.     $(INSTALL) libctax.a $(libdir)/libctax.a
  66.     $(RANLIB) $(libdir)/libctax.a
  67.     $(INSTALL) $(srcdir)/ctax.h $(includedir)/ctax.h
  68.     for f in $(scm_files); do \
  69.       $(INSTALL) $(srcdir)/$$f $(glsdir)/$$f; \
  70.     done
  71.  
  72.  
  73. uninstall:
  74.     -rm -f $(libdir)/libctax.a
  75.     -rm -f $(includedir)/ctax.h
  76.  
  77. clean:
  78.     -rm -f $(libobjs) $(xfiles) libctax.a
  79.  
  80. distclean: clean
  81.     -rm Makefile config.status
  82.  
  83. mostlyclean: clean
  84.  
  85. realclean: distclean
  86.  
  87. TAGS:
  88.     etags $(source)
  89.  
  90. info:
  91.  
  92. install-info:
  93.  
  94. clean-info:
  95.  
  96. dvi:
  97.  
  98. check:
  99.  
  100. SUBDIR=.
  101. manifest:
  102.     for file in $(distfiles); do echo $(SUBDIR)/$$file; done
  103.  
  104. dist:    $(distfiles)
  105.     echo ctax-`sed -e '/version_string/!d' -e 's/[^0-9.]*\([0-9.]*\).*/\1/' -e q ctax.c` > .fname
  106.     rm -rf `cat .fname`
  107.     mkdir `cat .fname`
  108.     ln $(distfiles) `cat .fname`
  109.     tar chzf `cat .fname`.tar.gz `cat .fname`
  110.     rm -rf `cat .fname` .fname
  111.  
  112.  
  113. libctax.a: $(libobjs)
  114.     rm -f libctax.a
  115.     $(AR) $(AR_FLAGS) libctax.a $(libobjs)
  116.     $(RANLIB) libctax.a
  117.  
  118. $(srcdir)/ctax-parse.h $(srcdir)/ctax-parse.c: ctax-parse.y
  119.     $(BISON) -d $(srcdir)/ctax-parse.y
  120.     sed -e 's/yy/ctyy/g' y.tab.c > $(srcdir)/ctax-parse.c
  121.     sed -e 's/yy/ctyy/g' y.tab.h > $(srcdir)/ctax-parse.h
  122.  
  123. ctax-parse.o: $(srcdir)/ctax-parse.c ctax.h
  124.  
  125. $(srcdir)/ctax-lex.c: ctax-lex.l
  126.     $(FLEX) $(srcdir)/ctax-lex.l
  127.     sed -e 's/yy/ctyy/g' lex.yy.c > $(srcdir)/ctax-lex.c
  128.  
  129.  
  130. ctax-lex.o: $(srcdir)/ctax-lex.c ctax.h $(srcdir)/ctax-parse.h
  131. ctax.o: ctax.c ctax.h ctax.x
  132.  
  133.